package com.ler.nacosdubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ler.nacosdubbo.domain.User;
import com.ler.nacosdubbo.service.LocalUserService;
import com.ler.nacosdubbo.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author lww
 * @date 2019-08-17 16:53
 */
@Service //Spring的Service注解
public class LocalUserServiceImpl implements LocalUserService {

	//dubbo注解
	@Reference
	private UserService userService;

	@Override
	public User getUser() {
		User user = userService.getUser();
		return user;
	}
}
